const { getHome, getNewHom, oldHouse, secondary, sheng, shi, xian, areaFind, findTwo, rentHouse, getPriceList } = require("../controller/home")
const auth = require("../middleware/auth")
const router = require("koa-router")()

//新房
router.get('/home', getHome)
router.get('/home/newHouse', getNewHom)
router.post('/home/newFind', areaFind)

//二手房
router.get('/home/oldHouse', oldHouse)
router.post('/home/selectArea', findTwo)

//出租房
router.get('/home/secondary', secondary)
router.post('/home/rentSelect', rentHouse)

router.get('/home/proviced', sheng)
router.post('/home/cities', shi)
router.post('/home/area', xian)

router.get("/home/select", getPriceList)

module.exports = router